<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <title>图书借阅系统登录</title>
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <link href="<%=path%>/css/login.css" rel="stylesheet" type="text/css">
    <link href="<%=path%>/css/app.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/css/default.css">
</head>
<body>
<div id="contentWrapper">
    <div id="contentTop">
        <h1>图书借阅管理系统——登录</h1>
    </div>

    <form name="login" id="login" action="<%=path%>/login/UserAction_login.action" method="post">
        <h1>LOGIN</h1>

        <div id="error">
            <s:fielderror fieldName="loginError"/>
            <s:fielderror fieldName="lossError"/>
        </div>

        <fieldset id="inputs">
            <input id="username" name="username" type="text" placeholder="Username"
                   maxlength="16" value="admin" autofocus required>
            <input id="password" name="password" type="password" placeholder="Password"
                   maxlength="12" value="weapon" required pattern="(?=^.{6,12}$).*$" title="密码长度至少6位">
        </fieldset>

        <fieldset id="actions">
            <input type="submit" id="submit" value="登录">
        </fieldset>
    </form>

    <div  id="bottom"style="width: 100%;bottom: 50px;text-align: center">Copyright © 2015-2015 All Rights Reserved Powered By WeaponLin</div>
</div>

</body>
</html>